package com.fujimana.rockincat.restree.context;

import java.util.Set;

import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;

import com.fujimana.rockincat.restree.web.map.RequestParameterMap;

public class RequestContext extends BasicContext {

	public RequestContext(ServletRequest request) {
		super(new RequestParameterMap((HttpServletRequest) request));
	}

	@Override
	public Object get(String name, Scope scope) {
		return get(name);
	}

	@Override
	public Set<String> getKeys(Scope scope) {
		return getKeys();
	}

	@Override
	public Scope getScope() {
		return Scope.REQUEST;
	}

	@Override
	public boolean isSet(String name, Scope scope) {
		return isSet(name);
	}

	@Override
	public void remove(String name, Scope scope) {
		remove(name);
	}

	@Override
	public void set(String name, Object value, Scope scope) {
		set(name, value);
	}

}
